NVIDIA Jetson Xavier NX分配磁盘空间 您所在的位置:网站首页 filesystem full磁盘没满 NVIDIA Jetson Xavier NX分配磁盘空间

NVIDIA Jetson Xavier NX分配磁盘空间

2023-07-16 05:47| 来源: 网络整理| 查看: 265

文章目录: 1 问题和场景说明2 尝试解决磁盘分区挂在问题

提前声明,这篇博客可能并不能够帮助你,你勿吐嘈,仅作我个人遇到到问题的情况,因此此篇是水博客,请跳过

1 问题和场景说明

1、我使用SDK Manager刷机方式给我的Jetson Xavier NX设备刷机的时候,发现刷完机器之后,系统几乎没有空间了,但是我的SD卡是128GB的,

如下图所示,可以看到有SD卡分区并没有挂在上去

在这里插入图片描述

可以使用命令:sudo fdisk -l查看分区的情况

zhihui@zhihui-desktop:~$ sudo fdisk -l [sudo] password for zhihui: Disk /dev/ram0: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram1: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram2: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram3: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram4: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram5: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram6: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram7: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram8: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram9: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram10: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram11: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram12: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram13: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram14: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram15: 8 MiB, 8388608 bytes, 16384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/loop0: 16 MiB, 16777216 bytes, 32768 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000 Disk /dev/mtdblock0: 32 MiB, 33554432 bytes, 65536 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mmcblk0: 119.1 GiB, 127865454592 bytes, 249737216 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 010FA85C-F718-4B4D-B503-E97D63E7716D Device Start End Sectors Size Type /dev/mmcblk0p1 40 29360167 29360128 14G Microsoft basic data /dev/mmcblk0p2 29360168 29491239 131072 64M Microsoft basic data /dev/mmcblk0p3 29491240 29622311 131072 64M Microsoft basic data /dev/mmcblk0p4 29622312 29623207 896 448K Microsoft basic data /dev/mmcblk0p5 29623208 29624103 896 448K Microsoft basic data /dev/mmcblk0p6 29624104 29753127 129024 63M Microsoft basic data /dev/mmcblk0p7 29753128 29754151 1024 512K Microsoft basic data /dev/mmcblk0p8 29754152 29754663 512 256K Microsoft basic data /dev/mmcblk0p9 29754664 29755175 512 256K Microsoft basic data /dev/mmcblk0p10 29755176 29959975 204800 100M Microsoft basic data /dev/mmcblk0p11 29960192 249735167 219774976 104.8G Linux filesystem Disk /dev/zram0: 647 MiB, 678387712 bytes, 165622 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/zram1: 647 MiB, 678387712 bytes, 165622 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/zram2: 647 MiB, 678387712 bytes, 165622 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/zram3: 647 MiB, 678387712 bytes, 165622 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/zram4: 647 MiB, 678387712 bytes, 165622 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/zram5: 647 MiB, 678387712 bytes, 165622 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes zhihui@zhihui-desktop:~$ sudo mount /dev/mmcblk0p11 /dev/mmcblk0p11^C

使用命令:df -h查看各个磁盘分区的使用情况:

zhihui@zhihui-desktop:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p1 14G 12G 1.1G 92% / none 3.5G 0 3.5G 0% /dev tmpfs 3.8G 52K 3.8G 1% /dev/shm tmpfs 3.8G 30M 3.8G 1% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup tmpfs 777M 12K 777M 1% /run/user/120 tmpfs 777M 124K 777M 1% /run/user/1000 2 尝试解决磁盘分区挂在问题

由于,Jetson Xavier NX会自带一部分存储空间,然后我在刷机的时候并没有把系统刷进SD卡中,后面就导致很难挂在,而且两个独立的硬件存储设备貌似是不能够实现分区挂在的,反正我的windows电脑就是这样的,估计这个Jetson NX设备也不例外。

最终的解决方式:使用另外一种刷机方式,镜像刷机

具体参考:这篇博客

下面是各种骚操作尝试,也都没有用,请不用看!!!

zhihui@zhihui-desktop:~$ udo mount /dev/mmcblk0p11 /dev/mmcblk0p1 bash: udo: command not found zhihui@zhihui-desktop:~$ sudo mount /dev/mmcblk0p11 /dev/mmcblk0p1 mount: /dev/mmcblk0p1: mount point is not a directory. zhihui@zhihui-desktop:~$ sudo mount /dev/mmcblk0p11 /home/zhihui zhihui@zhihui-desktop:~$ ls Desktop Downloads Jetson_NX_requirement.txt Pictures Templates VisionWorks-SFM-0.90-Samples Documents examples.desktop Music Public Videos zhihui zhihui@zhihui-desktop:~$ cd /home/ zhihui@zhihui-desktop:/home$ ls zhihui zhihui@zhihui-desktop:/home$ cd zhihui/ zhihui@zhihui-desktop:~$ ls lost+found zhihui@zhihui-desktop:~$ cd lost+found/ bash: cd: lost+found/: Permission denied zhihui@zhihui-desktop:~$ du --max-depth=1 -h 24K ./.config du: cannot read directory './lost+found': Permission denied 16K ./lost+found 44K . zhihui@zhihui-desktop:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p1 14G 12G 1.1G 92% / none 3.5G 0 3.5G 0% /dev tmpfs 3.8G 52K 3.8G 1% /dev/shm tmpfs 3.8G 30M 3.8G 1% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup tmpfs 777M 12K 777M 1% /run/user/120 tmpfs 777M 128K 777M 1% /run/user/1000 /dev/mmcblk0p11 103G 61M 98G 1% /home/zhihui zhihui@zhihui-desktop:~$

在这里插入图片描述

在这里插入图片描述

pvcreate sudo apt-get install lvm2

zhihui@zhihui-desktop:/$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p1 14G 12G 1.1G 93% / none 3.5G 0 3.5G 0% /dev tmpfs 3.8G 112M 3.7G 3% /dev/shm tmpfs 3.8G 22M 3.8G 1% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup tmpfs 777M 12K 777M 1% /run/user/120 tmpfs 777M 108K 777M 1% /run/user/1000 /dev/mmcblk0p11 105G 32K 105G 1% /mnt/mmcblk0p11 zhihui@zhihui-desktop:/$ pvcreate /dev/mmcblk0p11 WARNING: Running as a non-root user. Functionality may be unavailable. /run/lvm/lvmetad.socket: access failed: Permission denied WARNING: Failed to connect to lvmetad. Falling back to device scanning. /run/lock/lvm/P_orphans:aux: open failed: Permission denied Can't get lock for orphan PVs. zhihui@zhihui-desktop:/$ sudo pvcreate /dev/mmcblk0p11 Can't open /dev/mmcblk0p11 exclusively. Mounted filesystem? zhihui@zhihui-desktop:/$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p1 14G 12G 1.1G 93% / none 3.5G 0 3.5G 0% /dev tmpfs 3.8G 113M 3.7G 3% /dev/shm tmpfs 3.8G 22M 3.8G 1% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup tmpfs 777M 12K 777M 1% /run/user/120 tmpfs 777M 108K 777M 1% /run/user/1000 zhihui@zhihui-desktop:/$ sudo pvcreate /dev/mmcblk0 Device /dev/mmcblk0 excluded by a filter. zhihui@zhihui-desktop:/$ zhihui@zhihui-desktop:/$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mmcblk0p1 14G 12G 1.1G 93% / none 3.5G 0 3.5G 0% /dev tmpfs 3.8G 112M 3.7G 3% /dev/shm tmpfs 3.8G 22M 3.8G 1% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup tmpfs 777M 12K 777M 1% /run/user/120 tmpfs 777M 108K 777M 1% /run/user/1000 zhihui@zhihui-desktop:/$ sudo pvcreate /dev/mmcblk0 Device /dev/mmcblk0 excluded by a filter. zhihui@zhihui-desktop:/$ zhihui@zhihui-desktop:/$ sudo vgextend VolGroup /dev/mmcblk0 Device /dev/mmcblk0 excluded by a filter. zhihui@zhihui-desktop:/$ zhihui@zhihui-desktop:/$ sudo fdisk /dev/mmcblk0 Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): m Help: Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type v verify the partition table i print information about a partition Misc m print this menu x extra functionality (experts only) Script I load disk layout from sfdisk script file O dump disk layout to sfdisk script file Save & Exit w write table to disk and exit q quit without saving changes Create a new label g create a new empty GPT partition table G create a new empty SGI (IRIX) partition table o create a new empty DOS partition table s create a new empty Sun partition table Command (m for help): F Unpartitioned space /dev/mmcblk0: 104.8 GiB, 112525819904 bytes, 219776992 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Start End Sectors Size 29960192 249737183 219776992 104.8G Command (m for help): n Selected partition 11 First sector (29959976-249737183, default 29960192): Last sector, +sectors or +size{K,M,G,T,P} (29960192-249737183, default 249737183): Created a new partition 11 of type 'Linux filesystem' and of size 104.8 GiB. Partition #11 contains a vfat signature. Do you want to remove the signature? [Y]es/[N]o: Y The signature will be removed by a write command. Command (m for help): t Partition number (1-11, default 11): Partition type (type L to list all types): L 1 EFI System C12A7328-F81F-11D2-BA4B-00A0C93EC93B 2 MBR partition scheme 024DEE41-33E7-11D3-9D69-0008C781F39F 3 Intel Fast Flash D3BFE2DE-3DAF-11DF-BA40-E3A556D89593 4 BIOS boot 21686148-6449-6E6F-744E-656564454649 5 Sony boot partition F4019732-066E-4E12-8273-346C5641494F 6 Lenovo boot partition BFBFAFE7-A34F-448A-9A5B-6213EB736C22 7 PowerPC PReP boot 9E1A2D38-C612-4316-AA26-8B49521E5A8B 8 ONIE boot 7412F7D5-A156-4B13-81DC-867174929325 9 ONIE config D4E6E2CD-4469-46F3-B5CB-1BFF57AFC149 10 Microsoft reserved E3C9E316-0B5C-4DB8-817D-F92DF00215AE 11 Microsoft basic data EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 12 Microsoft LDM metadata 5808C8AA-7E8F-42E0-85D2-E1E90434CFB3 13 Microsoft LDM data AF9B60A0-1431-4F62-BC68-3311714A69AD 14 Windows recovery environment DE94BBA4-06D1-4D40-A16A-BFD50179D6AC 15 IBM General Parallel Fs 37AFFC90-EF7D-4E96-91C3-2D7AE055B174 16 Microsoft Storage Spaces E75CAF8F-F680-4CEE-AFA3-B001E56EFC2D 17 HP-UX data 75894C1E-3AEB-11D3-B7C1-7B03A0000000 18 HP-UX service E2A1E728-32E3-11D6-A682-7B03A0000000 19 Linux swap 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F 20 Linux filesystem 0FC63DAF-8483-4772-8E79-3D69D8477DE4 21 Linux server data 3B8F8425-20E0-4F3B-907F-1A25A76F98E8 22 Linux root (x86) 44479540-F297-41B2-9AF7-D131D5F0458A 23 Linux root (ARM) 69DAD710-2CE4-4E3C-B16C-21A1D49ABED3 24 Linux root (x86-64) 4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709 25 Linux root (ARM-64) B921B045-1DF0-41C3-AF44-4C6F280D3FAE 26 Linux root (IA-64) 993D8D3D-F80E-4225-855A-9DAF8ED7EA97 27 Linux reserved 8DA63339-0007-60C0-C436-083AC8230908 28 Linux home 933AC7E1-2EB4-4F13-B844-0E14E2AEF915 29 Linux RAID A19D880F-05FC-4D3B-A006-743F0F84911E 30 Linux extended boot BC13C2FF-59E6-4262-A352-B275FD6F7172 31 Linux LVM E6D6D379-F507-44C2-A23C-238F2A3DF928 32 FreeBSD data 516E7CB4-6ECF-11D6-8FF8-00022D09712B 33 FreeBSD boot 83BD6B9D-7F41-11DC-BE0B-001560B84F0F 34 FreeBSD swap 516E7CB5-6ECF-11D6-8FF8-00022D09712B 35 FreeBSD UFS 516E7CB6-6ECF-11D6-8FF8-00022D09712B 36 FreeBSD ZFS 516E7CBA-6ECF-11D6-8FF8-00022D09712B 37 FreeBSD Vinum 516E7CB8-6ECF-11D6-8FF8-00022D09712B 38 Apple HFS/HFS+ 48465300-0000-11AA-AA11-00306543ECAC 39 Apple UFS 55465300-0000-11AA-AA11-00306543ECAC 40 Apple RAID 52414944-0000-11AA-AA11-00306543ECAC 41 Apple RAID offline 52414944-5F4F-11AA-AA11-00306543ECAC : 欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 微信:suihailiang0816 QQ:931762054 wx公众号:仰望星空的小随


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有